<?php
/**
 * @Author: rocky
 * @Copyright: 广州拓冠科技 <http://my8m.com>
 * Date: 2019/8/26
 * Time: 11:30
 */


namespace app\shop\validate;


use app\common\validate\BaseValidate;

class OrderConfimValidate extends BaseValidate
{
    protected $rule = [
        'car_ids' => 'requireIf:type,1',
        'spec_id'=>'requireIf:type,2',
        'num'=>'requireIf:type,2|min:1|gt:0',
    ];
}